/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonFloatListener extends JsonAbstractListener<Float> {

    private static final JsonFloatListener instance = new JsonFloatListener();

    private JsonFloatListener() {
    }

    public static JsonFloatListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(final JsonWriter out, final Float value) {
        convertFloatTo(out, value);
    }

    @Override
    public final Float convertFrom(final JsonReader in) {
        return convertFloatFrom(in);
    }

    @Override
    public Class<Float> getType() {
        return Float.class;
    }
}
